<script type="application/javascript">
  var h2 = document.body.getElementsByTagName('h2');
  for (i=0; i < h2.length; i++){
	  document.getElementById('resultado1').innerHTML += "<p>" + h2[i].textContent + "<\p>";
  }
</script>